<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据验证-default</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.js"></script>
</head>
<body>
<div id="case13-demo8">
    <foo-component></foo-component>
</div>
<script type="text/javascript">
    var case13Demo8=new Vue({
        el:'#case13-demo8',
        data:{
            fooMessage:256
        },
        components:{
            'foo-component':{
                template:'<div>{{fooMessage}}</div>',
                props:{
                    fooMessage: {
                        type:Number,
                        default:'你好'
                    }
                }
            }
        }
    })
</script>
</body>
</html>